package com.czl.elm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.czl.elm.domain.Activity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zuoleiChen
 * @since 2021-06-15
 */

@Mapper
@Repository
public interface ActivityMapper extends BaseMapper<Activity> {

    String checkActivityUse(String phoneName, LocalDateTime activityTime);

    Map<String, Object> getActivityOrder(String redParperId);

    List<String> getAllactivityType();

    Integer saveActivityRecord(Activity activity);


    Integer getActivityByShop(String phoneName, Integer shopId, LocalDateTime now);
}
